﻿using System;
using Castle.MonoRail.Framework;

namespace Rodunu.Movies.Web.ViewComponents
{
    public class FavoritesComponent : ViewComponent
    {
        public override void Render()
        {
            PropertyBag["IsFavorite"] = Convert.ToBoolean(Context.ComponentParameters["IsFavorite"]);
            PropertyBag["AllowMark"] = Convert.ToBoolean(Context.ComponentParameters["Allow"]);
            PropertyBag["UserMovieId"] = Convert.ToInt64(Context.ComponentParameters["UserMovieId"]);
            PropertyBag["Size"] = Convert.ToUInt32(Context.ComponentParameters["Size"]);
            base.Render();
        }
    }
}
